<!-- 动态列弹窗 -->
<nz-modal [(nzVisible)]="data1[getfieldsbytype]" *ngIf="data1[getfieldsbytype]" nzTitle="信息选择" [nzMask]="true"
  [nzMaskStyle]="{backgroundColor:'rgba(0,0,0,.22)'}" [nzWidth]="720" [nzFooter]="null" (nzOnCancel)="popup11_hide()">
  <div class="layui-tab-content">
    <!-- 关联采购合同 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['payment.PprByPucVo']">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购合同编号" [(ngModel)]="data1['pucNum']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期>=" style="width: 120px;" id="popup11_date1">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期<=" style="width: 120px;" id="popup11_date2">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商仓库代码" [(ngModel)]="data1['vdrWarehCode']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="ss_but2" nz-button nzType="default" (click)="popup12_show(1,'WH')" type="button"
          data-method="setTop" style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div style="clear: both;"></div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购商仓库代码" [(ngModel)]="data1['vdeWarehCode']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="ss_but2" nz-button nzType="default" (click)="popup12_show(2,'WH')" type="button"
          data-method="setTop" style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 关联预付款单 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['payment.PmnVo']">
      <!-- <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购合同编号" [(ngModel)]="data1['pucNum']"
          style="width: 120px;">
      </div> -->
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="预付款单编号" [(ngModel)]="data1['pmnNum']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期>=" style="width: 120px;" id="popup11_date1">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期<=" style="width: 120px;" id="popup11_date2">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 关联入库单 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['warehouse.pprGrnVO']">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="入库单编号" [(ngModel)]="data1['grnNum']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期>=" style="width: 120px;" id="popup11_date1">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期<=" style="width: 120px;" id="popup11_date2">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 采购付款申请单 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['payment.PprVo']">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="采购付款单编号" [(ngModel)]="data1['pprNum']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="供应商代码" [(ngModel)]="data1['vdrWarehCode']"
          style="width: 120px;">
        <button class="ss_but2" nz-button nzType="default" (click)="popup12_show(1,'VD')" type="button"
          data-method="setTop" style="width:28px;"><i class="layui-icon layui-icon-search"></i></button>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期>=" style="width: 120px;" id="popup11_date1">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="单据日期<=" style="width: 120px;" id="popup11_date2">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 角色弹窗 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['system.SysRoleVo']">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="角色id" [(ngModel)]="data1['roleId']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="角色描述" [(ngModel)]="data1['description']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 商品周期动作参数配置弹窗 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['prdCycle.PrdCycleParamVo']">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="动作id" [(ngModel)]="data1['actionId']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="参数名称" [(ngModel)]="data1['parameterName']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>
    <!-- 导购 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['shop.ShopEmpVo']">

    </div>
    <!-- 权限 -->
    <div class="layui-tab-item layui-show layui-col-space5" *ngIf="data1['system.SysPrivilegeVo']">
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="权限Id" [(ngModel)]="data1['privId']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <input nz-input nzSize="default" autocomplete="off" placeholder="描述" [(ngModel)]="data1['description']"
          style="width: 120px;">
      </div>
      <div class="layui-inline layui-show-xs-block">
        <nz-select style="float:left;width: 140px;" nzShowSearch nzAllowClear nzPlaceHolder="权限类别" [(ngModel)]="data1['privType']">
          <nz-option *ngFor="let option of data1_sel['privType']" [nzValue]="option.optionValue"
            [nzLabel]="option.optionName"></nz-option>
        </nz-select>
      </div>
      <div class="layui-inline layui-show-xs-block">
        <button class="layui-btn" lay-submit="" lay-filter="sreach" (click)="popup11_table(getfieldsbytype)"><i
            class="layui-icon">&#xe615;</i></button>
      </div>
    </div>

  </div>
  <table id="{{getfieldsbytypes}}" [attr.lay-filter]="getfieldsbytypes"></table>
</nz-modal>
<div id="{{getfieldsbytypes}}2" style="display: none;">
  <div class="layui-btn-container">
    <button class="layui-btn layui-btn-sm" lay-event="getCheckData">确定</button>
  </div>
</div>

<!-- 组织弹窗 -->
<app-unit2 (outer)="unitParent($event)" #unitChild></app-unit2>